package com.hualala.junit;

import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;

public class JunitDemoObj {
    public static int getCalculator(int a, int b){
        int sum = a + b;
        return sum;
    }

    public static void main(String[] args) {
        int res = getCalculator(3, 2);
        /*assertEquals(5,res);
        assertEquals(6,res);
        assertEquals(3,res);*/


        assertAll(
                ()->assertEquals(3,res),
                ()->assertEquals(6,res),
                ()->assertEquals(5,res)
        );
    }
}
